package com.hc.nong;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface NongMapper {
    @Update("update user set money=money-#{money} where id =#{userId}")
    void reduceMoney(@Param("userId") int userId, @Param("money") double money);

}